package com.sdweizan.sdk.bytedance.bean.notify;

import com.alibaba.fastjson.annotation.JSONField;
import com.sdweizan.sdk.bytedance.bean.BdBaseResponse;
import com.sdweizan.sdk.bytedance.bean.payment.general.BdGeneralPageSchema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/** 通用交易-退款申请回调响应** */
@EqualsAndHashCode(callSuper = true)
@Data
public class BdOrderRefundApplyNotifyResponse extends BdBaseResponse {

  private RefundResponseData data;

  @Data
  public static class RefundResponseData {
    /** 开发者侧退款单号，长度 <= 64byte* */
    @JSONField(name = "out_refund_no")
    private String outRefundNo;

    /** 退款单详情页跳转地址 * */
    @JSONField(name = "order_entry_schema")
    private BdGeneralPageSchema orderEntrySchema;

    /** 退款结果通知地址，必须是 https 类型* */
    @JSONField(name = "notify_url")
    private String notifyUrl;
  }
}
